import mediaoldrequest from '@/utils/media-old-request'

export function getCategory(data) {
  return mediaoldrequest({
    url: '/corp/mediatype/category/tree/list',
    method: 'get',
    params: data
  })
}

export function getChildCategory(data) {
  return mediaoldrequest({
    url: '/corp/mediatype/category/children/list',
    method: 'get',
    params: data
  })
}
